package org.study.springboot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.study.springboot.model.sftp.SftpConfigBO;

import java.util.ArrayList;
import java.util.List;

@Configuration
@ConfigurationProperties(prefix = "sftp.props")
public class SftpProperties {
    /**
     * 解决注入List<Object>
     */
    private List<SftpConfigBO> data = new ArrayList<>();

    public List<SftpConfigBO> getData() {
        return data;
    }

    public void setData(List<SftpConfigBO> data) {
        this.data = data;
    }
}
